package com.responseData;

public class R<T> {
    private Integer code;
    private String msg;
    private T data;
    private Boolean success;
    public R(Integer code,String message,  T data , Boolean success) {
        this.code = code;
        this.data = data;
        this.msg = message;
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }

    public Boolean getSuccess(){return this.success;}

    public void setSuccess(Boolean success){this.success = success;}

}
